﻿using System;

namespace enyo.db8
{
    public class DelIdsParam : DbParam
    {
        /// <summary>
        /// Array of JSON data object IDs to delete. This or "query" must be specified.
        /// </summary>
        public string[] ids;

        /// <summary>
        /// If not purged, target objects are marked as deleted and not completely removed until an administrative purge operation is run.
        /// Objects marked as deleted can still be retrieved. Default is false.
        /// </summary>
        public bool Purge;
    }

    public class DelQueryParam : DbParam
    {
        /// <summary>
        /// Query specifying set of objects to delete. This or "ids" must be specified.
        /// </summary>
        public Query Query;

        /// <summary>
        /// If not purged, target objects are marked as deleted and not completely removed until an administrative purge operation is run.
        /// Objects marked as deleted can still be retrieved. Default is false.
        /// </summary>
        public bool Purge;
    }
}
